package cn.fintecher.pangolin.entity.mysql;

import cn.fintecher.pangolin.common.enums.BaseStatus;
import cn.fintecher.pangolin.common.enums.DeviceType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

/**
 * @Auther: xiaqun
 * @Description: 设备锁实体
 * @Date: 11:40 2019/8/15
 */

@Data
@Entity
@Table(name = "user_device")
@Api(value = "设备锁实体", description = "设备锁实体")
public class UserDevice extends BaseEntity {
    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty("设备编码")
    private String deviceCode;

    @ApiModelProperty("MAC地址")
    private String mac;

    @ApiModelProperty("设备类型")
    @Enumerated(EnumType.STRING)
    private DeviceType deviceType;

    @ApiModelProperty("设备名称")
    private String deviceName;

    @ApiModelProperty("状态")
    @Enumerated(EnumType.STRING)
    private BaseStatus Status;
}
